package org.emet.flex.services
{
	import mx.collections.ArrayCollection;
	import mx.rpc.remoting.mxml.RemoteObject;

	public class RemoteObjectContext
	{
		private static var remoteOpers:ArrayCollection = new ArrayCollection();
		
		public function RemoteObjectContext()
		{
		}
		
		public static function getRO(destination:String):RemoteOper
		{
			//TODO put the new created ro to a map
			var ro:RemoteObject = new RemoteObject();
			ro.endpoint = "../messagebroker/amf";
			ro.destination = destination;
			return new RemoteOper(ro);
		}
	}
}